import request from '@/utils/request'

export default {
  pageBySearch(page, limit, transactionControlSearchVo) {
    return request({
      url: `/admin/getByQuery/${page}/${limit}`,
      method: 'post',
      data: transactionControlSearchVo
    })
  },
  page(page, limit) {
    return request({
      url: `/admin/getByPage/${page}/${limit}`,
      method: 'get'
    })
  },
  find(id) {
    return request({
      url: `/admin/find/${id}`,
      method: 'get'
    })
  },
  save(financialInstruments) {
    return request({
      url: `/admin/saveDebenture`,
      method: 'post',
      data: financialInstruments
    })
  }
}
